﻿using System.Threading.Tasks;
using Abp.Dependency;
using DHJ.Cost.MessageHandle;
using DHJ.Messages.Cost;
using NServiceBus;

namespace DHJ.Cost.Tasks
{
    public class MaterialCostHandler : IHandleMessages<MaterialCost>
    {

        public async System.Threading.Tasks.Task Handle(MaterialCost message, IMessageHandlerContext context)
        {
            var handler = IocManager.Instance.Resolve<IMessageHandleAppService>();
            await handler.MaterialCostHandler(message);
        }
    }
}